///// Adilet Joldoshbekov
///// 2 - grade
/////  1204.01012
using System;

class MyClass
{
    static void Main()
    {
        long d=1,  r, a;
        double i = 0.0, p,k = 0;
        Console.WriteLine("Enter a number for to convet two digit number: ");
        a = Convert.ToInt64(Console.ReadLine());
        while (d !=0)
        {
            r = a%2;
            d = a/2;
            a = d;
          
            p = (Math.Pow(10,i))*r + k;
            k = p;
            i++;
        }
        Console.WriteLine("converted: {0}",k);
        Console.ReadKey();

    }
}